package com.ruoyi.lc.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ruoyi.lc.mapper.TableMapper;
import com.ruoyi.lc.service.ITableService;

/**
 * 原生的table相关操作服务
 * @author QBT
 */
@Service
public class TableServiceImpl implements ITableService {

	@Resource
    private TableMapper tableMapper;

    public boolean isTableExists(String tableName) {
        int count = tableMapper.checkTableExists(tableName);
        return count > 0;
    }
	
}
